﻿<phone:PhoneApplicationPage 
    x:Class="EbbinghausWord.Pages.StudyAchievementPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:MyControls="clr-namespace:EbbinghausWord.Controls"
    xmlns:c4f="clr-namespace:Coding4Fun.Phone.Controls;assembly=Coding4Fun.Phone.Controls"
    xmlns:Converters="clr-namespace:Coding4Fun.Phone.Controls.Converters;assembly=Coding4Fun.Phone.Controls"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    Loaded="PhoneApplicationPage_Loaded"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="False" mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480">

    <!--LayoutRoot contains the root grid where all other page content is placed-->
    <Grid x:Name="LayoutRoot">
        <controls:Panorama>
            <controls:Panorama.TitleTemplate>
                <DataTemplate>
                </DataTemplate>
            </controls:Panorama.TitleTemplate>

            <!--待复习的单词-->
            <controls:PanoramaItem Header="待复习单词">
                <Grid>
                    <MyControls:WordListControl Grid.Row="0" x:Name="reviewWordListControl"/>
                </Grid>
            </controls:PanoramaItem>

            <!--永远记住的单词-->
            <controls:PanoramaItem Header="学会的单词">
                <Grid>
                    <MyControls:WordListControl Grid.Row="0" x:Name="achievementWordListControl"/>
                </Grid>
            </controls:PanoramaItem>

            <!--学习中单词-->
            <controls:PanoramaItem Header="在学的单词">
                <Grid>
                    <MyControls:WordListControl Grid.Row="0" x:Name="learningWordListControl"/>
                </Grid>
            </controls:PanoramaItem>
        </controls:Panorama>

        <c4f:ProgressOverlay Name="progressOverlay" Visibility="Visible">
            <c4f:ProgressOverlay.Resources>
                <Converters:VisibilityToBooleanConverter x:Key="VisToBoolConverter" />
            </c4f:ProgressOverlay.Resources>
            <StackPanel>
                <TextBlock HorizontalAlignment="Center">Loading</TextBlock>
                <toolkit:PerformanceProgressBar 
                            IsIndeterminate="{Binding ElementName=progressOverlay, 
                            Path=Visibility,
                            Converter={StaticResource VisToBoolConverter}}"
                            />
            </StackPanel>
        </c4f:ProgressOverlay>
       
    </Grid>

    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton x:Name="studyBarIconButton" 
                IconUri="/Images/study.png"
                Text="学习" Click="studyBarIconButton_Click"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>